#include <QGraphicsItem>
#include <QPainter>
#include <QTime>
#include "PubSrtuct.h"

class CPointerItem : public QGraphicsItem
{
public:
	CPointerItem(CNeedleType type);
	void setTimeValue(const QTime& value);

protected:
	QRectF boundingRect() const;
	void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

private:
	CNeedleType m_needleType;
	qreal m_angle;
};